<div class="gallery" >
	<volist name="photos.data" id="li">
		<figure data='{:json_encode(array('albumId'=>$li['albumId'],'photoId' => $li['id'], 'desc' => $li['desc'], 'name' => $li['name']))}'>
		<a href="{:U('photo/Index/photo',array(id=>$li['id'],aid=>$li['albumId'],uid=>$li['userId']))}<neq name="type" value=""  data="{$li.savepath|get_photo_url}" >&type={$type}</neq>#show_pic" title="{$li.name}"  class="photo_item preview" ><img src="{$li.savepath|get_photo_url}" /></a>
		<div class="toolbar">
			<?php if(is_cover($li['albumId'], $li['id'])):?><a href="#" class="cover">设为封面</a><?php endif;?><a href="#" class="edit"><em class="icon edit">&nbsp;</em>编辑</a><a href="" class="delete"><em class="icon delete">&nbsp;</em>删除</a>
			<span class="qmenu"><a href="#" class="group"><?php echo getUserAge($_SESSION['userProfile']['intro']['birthday'], $li['mTime']);?><em class="icon submenu">&nbsp;</em></a>
				<ul><li><a href="#">3岁1个月</a></li><li><a href="#">1岁2个月</a></li></ul>
			</span>
		</div>
		<h4 class="title">{$li.name|getShort='10'}</h4>
		<p class="desc">
			<?php if(!empty($li['info'])) echo $li['info']; else  echo '还没有照片信息，点编辑可以修改'; ?>
		</p>
		<p class="info">
			<!--<a href="#"><em class="icon browse">&nbsp;</em>浏览{$li.readCount}次</a>-->
			<a href="{:U('home/Comment/getComment', array('appid'=>3, 'id'=>$li['id'], 'type' => 2))}" data='{:json_encode(array("appid"=>3, "id"=>$li["id"], "type" => 2, "table" => "photo", "id_field" => "id", "comment_count_field" => "commentCount"))}'  class="show_comment" ><em class="icon comment">&nbsp;</em>评论(<em class="num"><?php echo $li['commentCount'];?></em>)</a>
<!--			<a href="#"><em class="icon favorite">&nbsp;</em>收藏8次</a>-->
			<!--<space uid="li['userId']" class="fn" target="_blank">{uname}</space>-->
		</p>
		
		<div id="comment_list_<?php echo $li['id'];?>"></div>
	</figure>
    </volist>	
</div>	

<!-- edit box-->
<div class="pop hidden" id="photo_edit_box">
<div class="photo_edit_box">
	  <table  border="0" cellspacing="2" cellpadding="0">
	  <tr>
	    <th>标题：</th>
	    <td><input type="text" name="name" id="name" value="{$photo.name}" /></td>
	  </tr>
	  <tr>
	    <th>说明：</th>
	    <td><textarea name="desc" cols="50" rows="5" id="desc"></textarea></td>
	  </tr>
	  <tr>
	    <th>所属{$ts['app']['app_alias']}：</th>
	    <td align="left" height="24">
			{:W('AlbumList',array('uid'=>$mid,'selected'=>intval($_GET['aid']),'form_id'=>'albumId'))}
	    </td>
	  </tr>
	  <tr>
	    <th>&nbsp;</th>
	    <td align="left" height="24">
			<input type="button" class="btn_b" value="确定">
	    </td>
	  </tr>
	  </table>
	  <input type="hidden" name="photoId" id="photoId" value="{$photo.id}" />
  </div>
</div>
